home *** CD-ROM | disk | FTP | other *** search
/ Champak 29 / Volume 29 - JOGO DISK .iso / Games / little_soldiers.swf / scripts / frame_34 / DoAction.as
Text File  |  2006-11-29  |  1KB  |  60 lines

  1. menustuff.start.stop();
  2. menustuff.sound.stop();
  3. if(sounds)
  4. {
  5.    menustuff.sound.checked.gotoAndStop(1);
  6. }
  7. else
  8. {
  9.    menustuff.sound.checked.gotoAndStop(2);
  10. }
  11. menustuff.start.onRollOver = function()
  12. {
  13.    this.gotoAndStop(2);
  14. };
  15. menustuff.start.onRollOut = menustuff.start.onDragOut = function()
  16. {
  17.    this.gotoAndStop(1);
  18. };
  19. menustuff.start.onRelease = function()
  20. {
  21.    soundBoard.start("sClick",0,0);
  22.    brief = true;
  23.    level = 0;
  24.    gotoAndStop("game");
  25. };
  26. menustuff.sound.onRollOver = function()
  27. {
  28.    this.gotoAndStop(2);
  29. };
  30. menustuff.sound.onRollOut = menustuff.start.onDragOut = function()
  31. {
  32.    this.gotoAndStop(1);
  33. };
  34. menustuff.sound.onRelease = function()
  35. {
  36.    sounds = !sounds;
  37.    if(sounds)
  38.    {
  39.       soundBoard.start("sMusic",0,99999);
  40.       menustuff.sound.checked.gotoAndStop(1);
  41.    }
  42.    else
  43.    {
  44.       sMusic = soundBoard.stopAll();
  45.       menustuff.sound.checked.gotoAndStop(2);
  46.    }
  47. };
  48. menustuff.demo.onRollOver = function()
  49. {
  50.    this.gotoAndStop(2);
  51. };
  52. menustuff.demo.onRollOut = menustuff.start.onDragOut = function()
  53. {
  54.    this.gotoAndStop(1);
  55. };
  56. menustuff.demo.onRelease = function()
  57. {
  58.    gotoAndStop("upsell2");
  59. };
  60.